﻿<Window x:Class="CoTime.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="790" Width="600"
        WindowStartupLocation="CenterScreen"
        Loaded="WindowLoaded"
        Icon="/CoTime;component/Tomato.ico"
        ResizeMode="CanMinimize"
        Closing="WindowClosing" SizeChanged="WindowSizeChanged">
    <Window.Resources>
        <Style x:Name="XIconToolTip" x:Key="IconTooltip" TargetType="{x:Type ToolTip}">
            <Setter Property="HorizontalOffset" Value="10"/>
            <Setter Property="VerticalOffset" Value="5"/>
            <Setter Property="Background" Value="LightBlue"/>
            <Setter Property="Foreground" Value="Gray"/>
            <Setter Property="FontSize" Value="14"/>
        </Style>
    </Window.Resources>

    <Grid>
        <DockPanel Name="MainDock">
            <ToolBarPanel DockPanel.Dock="Top" Height="28" Width="Auto" Margin="0,0,0,1">
                <ToolBarTray Background="White" Height="28">
                    <ToolBar Band="1" Name="ToolBarButtons" BandIndex="1" IsTabStop="True">
                        <Button Click="ButtonTimerClick" Name="Btn_Timer">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">开启一个番茄时钟</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/timer.png" Width="20" Height="20" />
                        </Button>
                        <Separator Width="1" Margin="3,0,8,0"/>
                        <Button Click="ButtonEstiClick" Name="Btn_Esti">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">添加一个预估番茄时间</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/esti.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonPomoClick" Name="Btn_Pomo">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">添加一个番茄时间</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/pomo.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonAbanClick" Name="Btn_Aban">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">放弃当前番茄时间</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/pomoaban.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonInteClick" Name="Btn_Inte">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">添加一个内部(Internal)中断</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/inte.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonExteClick" Name="Btn_Exte">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">添加一个外部(External)中断</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/exte.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonDoneClick" Name="Btn_Done">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">任务完成！</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/tick.png" Width="20" Height="20" />
                        </Button>
                        <Separator Margin="3,0,3,0" Visibility="Collapsed" />
                        <Button Click="ButtonUpClick" Name="Btn_Up">
                            <Image Source="Images/up.png" Width="20" Height="20" Visibility="Collapsed" />
                        </Button>
                        <Button Click="ButtonDownClick" Name="Btn_Down">
                            <Image Source="Images/down.png" Width="20" Height="20" Visibility="Collapsed" />
                        </Button>
                        <Button Click="ButtonSortClick" Name="Btn_Sort" Visibility="Collapsed">
                            <Image Source="Images/sort.png" Width="20" Height="20" />
                        </Button>
                        <Separator Margin="3,0,3,0" />
                        <Button Click="ButtonPrevClick" Name="Btn_Prev">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">上一页</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/prev.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonNextClick" Name="Btn_Next">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">下一页</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/next.png" Width="20" Height="20" />
                        </Button>
                        <Separator Margin="3,0,3,0" />
                        <Button Click="ButtonSettingClick" Name="Btn_Setting">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">下一页</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/setting.png" Width="20" Height="20" />
                        </Button>
                        <Separator Margin="3,0,3,0" />
                        <Button Click="ButtonClearClick" Name="Btn_Clear" Visibility="Collapsed">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">清空Activity Inventory中已完成的任务</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/clear.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonSaveClick" Name="Btn_Save" Visibility="Collapsed">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">保存</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/save.png" Width="20" Height="20" />
                        </Button>
                        <Button Click="ButtonSyncClick" Name="Btn_Sync">
                            <Button.ToolTip>
                                <ToolTip Style="{StaticResource IconTooltip}">同步</ToolTip>
                            </Button.ToolTip>
                            <Image Source="Images/sync.png" Width="20" Height="20" />
                        </Button>
                    </ToolBar>
                </ToolBarTray>
            </ToolBarPanel>
            <WrapPanel Name="UIWrapper1"
                       DockPanel.Dock="Top"
                       HorizontalAlignment="Left"
                       VerticalAlignment="Top"
                       Margin="0,0,0,0">
            </WrapPanel>
            <WrapPanel Name="UIWrapper2"
                       DockPanel.Dock="Top"
                       HorizontalAlignment="Left"
                       VerticalAlignment="Top"
                       Margin="0,0,0,0"
                       Visibility="Hidden">
            </WrapPanel>
        </DockPanel>
    </Grid>
</Window>
